home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / os20 / wb / wbrandompic.lha / WBRandomPic.readme < prev   
Text File  |  1992-09-02  |  2KB  |  66 lines

  1.                          WBRandomPic by Chris Wright
  2.        
  3.  
  4. Function
  5.  
  6. A nifty little program for 2.1+, 3.x amigas that picks an iff picture at 
  7. random during bootup to use as the workbench background, from a selection of
  8. 2 - 99 iff picture files.
  9.    
  10.  
  11. How to use it
  12.    
  13. Create a directory to contain all the iff pictures that the program will
  14. choose between. Fill the directory with some iff's of your choice, and rename
  15. them as integers in the range 1 to n, where n = number of iff's.
  16.  
  17. Example/
  18.  
  19. Lets say you have 3 iffs:  arnie.iff , f16.iff ,  mansell.iff in a directory
  20. 'dh1:piccys'.
  21.  
  22. You would type:   'rename arnie.iff 1'
  23.                   'rename f16.iff   2'
  24.                   'rename mansell.iff 3'
  25.  
  26. Then, copy one of the iff's (doesn't matter which) to an intermediate file,
  27. that will be loaded by prefs as your WB background during bootup.
  28. (ie/ 'copy 2 wbpic.iff').
  29. Next, load the WBPattern tool, and change the type to 'picture', and select
  30. the intermediate file (in this case wbpic.iff).Click on save, and exit.
  31.  
  32. All that remains is to put the WBRandomPic command in your startup-sequence,
  33. but make sure it appears BEFORE C:Iprefs is run, otherwise prefs will attempt
  34. to access your background iff before it is ready to be used.
  35.  
  36. In most cases, this means that unless you change the ordering of your
  37. startup-sequence from the deafult, you won't be able to put WBRandomPic in
  38. User-Startup, because User-Startup is executed AFTER C:Iprefs.
  39.  
  40. Example/
  41.  
  42. In this case:     'WBRandomPic 3 dh1:piccys wbpic.iff' in your startup-sequence
  43. would suffice.
  44.  
  45.  
  46. How it works
  47.  
  48. Simple really, the program picks a random number between 1 and n, and copies
  49. the iff corresponding to that number to the file used by preferences to set
  50. the WB background. 
  51. Note: The program uses the system command 'copy', so if this has been changed
  52. to something different under your workbench environment, then you will need
  53. the appropriate 'alias' before WBRandomPic is executed in your startup-
  54. sequence. 
  55.  
  56.  
  57. End Bit
  58.  
  59. If you find this program useful, then please send £10 to......(I'm joking :>)
  60.  
  61. No, seriously, why not make my day and email  me (csc372@uk.ac.lancs.cent1)
  62. if you use this program / have any suggestions / find any bugs / want the 
  63. source code (can't imagine why!!!) etc.
  64.  
  65.  
  66.